<?php /* Smarty version Smarty-3.1.8, created on 2012-04-19 13:26:22
         compiled from ".\templates\header.tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:264514f8ff65eb3ab27-85134753%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f696056d1c2de5ecbb53eba715bbbd23aaa6ecbe' => 
    array (
      0 => '.\\templates\\header.tpl.html',
      1 => 1334834778,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '264514f8ff65eb3ab27-85134753',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'presentalogin' => 1,
    'session' => 1,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f8ff65eb7dfc3_99941634',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f8ff65eb7dfc3_99941634')) {function content_4f8ff65eb7dfc3_99941634($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<link rel="stylesheet" type="text/css" href="css/estilo.css" />
	<head> 
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Guild</title>
		<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="js/jquery.validate.js"></script>
		<script>
			$(document).ready(function(){
				$("#home").click(function(evento){
					evento.preventDefault();
					$("#contenido").load("index.php?module=main&action=main&output=htmlp", function(data){	});
				});
				$("#diablo").click(function(evento){
					evento.preventDefault();
					$("#contenido").load("index.php?module=main&action=diablo&output=htmlp", function(data){	});
				});
				$("#dota2").click(function(evento){
					evento.preventDefault();
					$("#contenido").load("index.php?module=main&action=dota2&output=htmlp", function(data){	});
				});
				$("#wow").click(function(evento){
					evento.preventDefault();
					$("#contenido").load("index.php?module=main&action=wow&output=htmlp", function(data){	});
				});
				$("#contacto").click(function(evento){
					evento.preventDefault();
					$("#contenido").load("index.php?module=contacto&action=contacto&output=htmlp", function(data){	});
				});
				$("#registrarse").click(function(evento){
					evento.preventDefault();
					$("#contenido").load("index.php?module=usuarios&action=add&output=htmlp", function(data){	});
				});
			});
		</script>
	</head>
	<body>	
	<div id="general">
		<div id="header">
			<h1 align="center">Web para Guild</h1>
				<div align="right" id="login">
					<?php echo $_smarty_tpl->getSubTemplate ("login.tpl.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

				</div>
				<table width="100%" border="1px" cellspacing="0" cellpadding="6" align="center">
  				<tr>
  					<td  valign="middle" bgcolor="#DCBF5F" style="padding-left:10px;border-bottom:1px solid #000000;">
  						<a id="home" href="index.php?module=main&action=index" class="header">HOME</a>
  						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a id="diablo" href="index.php?module=main&action=diablo" class="header">DIABLO 3</a> 
						&nbsp;&nbsp; &#8226;&nbsp;&nbsp;&nbsp; <a id="dota2" href="index.php?module=main&action=dota2" class="header">DOTA 2</a> 
						&nbsp;&nbsp; &#8226;&nbsp;&nbsp;&nbsp; <a id="wow" href="index.php?module=main&action=wow" class="header">WORLD OF WARCRAFT</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a id="contacto" href="index.php?module=contacto&action=contacto" class="header">CONTACTO</a>
					</td>
  				</tr>
  			</table>
		</div><!--header-->
		<div id="central">
			<div id="lateral">
				<?php if (isset($_smarty_tpl->tpl_vars['presentalogin']->value)&&$_smarty_tpl->tpl_vars['presentalogin']->value==false){?>
					<h2>Menu Usuario</h2>
					<br/><br/>
					<br/><a href="index.php?module=usuarios&action=edit">Editar datos</a><br/>
					<br/><a href="index.php?module=noticias&action=add">Crear noticia</a><br/>
					<br/><br/>
					<?php if (isset($_smarty_tpl->tpl_vars['session']->value['user']['username'])&&$_smarty_tpl->tpl_vars['session']->value['user']['username']=='admin'){?>
						<h2>Menu Admin</h2>
						<br/><br/>
						<br/><a href="index.php?module=usuarios&action=listado">Mostrar usuarios</a><br/>
						<!--<br/><a href="index.php?module=usuarios&action=edit">Editar usuarios</a><br/>-->
						<br/><a href="index.php?module=noticias&action=listado">Mostrar noticias</a><br/>
						<br/><a href="index.php?module=noticias&action=Editar">Editar noticias</a><br/>
					<?php }?>	
				<?php }?>
			</div><!--lateral-->
	<?php }} ?>